<include file="Public:head" />
<style>

    .table-striped tr  .td_dan{
        line-height: 30px;text-align: right;width: 50px
    }
    .width20{
        width: 260px;
    }
    textarea{
        height: 100px !important;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        网站设置
                    </div>
                </div>
            </div>
            <div class="col-sm-12 row chach">
                <volist name="Think.config.CONFIG_GROUP_LIST" id="group">
                    <if condition="$group neq '内容'">
                    <button class="action-button" type="button" onclick="window.open('{:U("?id=".$key)}','_self')">{$group}配置</button>
                    </if>

                </volist>
            </div>

                <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <form action="{:U('save')}" method="post" class="form-horizontal">
                            <fieldset>
                                <volist name="list" id="config">
                                    <table class="table table-striped no-margin">
                                        <tr ><td style="width: 10%;text-align: right;line-height: 34px">{$config.title}</td>
                                        <div class="m_wzb">
                                            <switch name="config.type">
                                                <case value="0">
                                                    <td >
                                                        <input type="text" class="form-control width20" name="config[{$config.name}]" placeholder="{$config.value}">
                                                        <span style="line-height: 34px">（{$config.remark}）</span>
                                                    </td>
                                                </case>
                                                <case value="1">
                                                    <td >
                                                        <input type="text" class="form-control width20" name="config[{$config.name}]" placeholder="{$config.value}">
                                                        <span style="line-height: 34px">（{$config.remark}）</span>
                                                    </td>
                                                </case>
                                                <case value="2">
                                                    <td>
                                                        <textarea name="config[{$config.name}]" class="form-control width20" placeholder="乐致安科技查新管理系统">{$config.value}</textarea>
                                                        <span style="line-height: 34px">（{$config.remark}）</span>
                                                    </td>
                                                </case>
                                                <case value="3">
                                                    <td>
                                                        <textarea name="config[{$config.name}]" class="form-control width20">{$config.value}</textarea>
                                                        <span style="line-height: 34px">（{$config.remark}）</span>
                                                    </td>
                                                </case>
                                                <case value="4">
                                                    <td>
                                                        <select name="config[{$config.name}]" class="form-control width20">
                                                            <volist name=":parse_config_attr($config['extra'])" id="vo">
                                                                <option value="{$key}" <eq name="config.value" value="$key">selected</eq>>{$vo}</option>
                                                            </volist>
                                                        </select>
                                                        <span style="line-height: 34px">（{$config.remark}）</span>
                                                    </td>

                                                </case>
                                            </switch>
                                        </div>
                                        </tr>
                                    </table>
                                </volist>
                                <div class="form-item">
                                    <label class="item-label"></label>
                                    <div class="controls">
                                        <empty name="list"><button type="submit" disabled class="action-button" target-form="form-horizontal">确 定</button><else/><button type="submit" class="action-button ajax-post" target-form="form-horizontal">确 定</button></empty>
                                        <button class="action-button" onclick="javascript:history.back(-1);return false;">返 回</button>
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<!--<include file="Public/base_fc" />-->
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">
    <script>
        $(function(){
            highlight_nav2('{:U("Config/group")}');

        })
    </script>
</block>
